<template>
  <view @click="handleClick">
    <slot></slot>
  </view>
</template>

<script>
export default {
  name: 'UniGodetail',

  data() {
    return {
      
    };
  },
  props:{
    item:{

    }
  },
  mounted() {
    // console.log(this.list);
    // console.log(this.index);
  },

  methods: {
    handleClick(){
      // 1.将数据缓存下来
      getApp().globalData.item=this.item
      // 2.实现点击跳转
      uni.navigateTo({
        url:"/pages/imgDetail/index"
      })
    }
  },
};
</script>

<style lang="scss" scoped>

</style>